Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2BundleManager = require("BundleManager");
var def_PoolManager = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
    this.poolMap = new Map();
  }
  babel_createClass(_ctor, [{
    key: "getPoolNode",
    value: function getPoolNode(e) {
      var t = this.poolMap.get(e);
      if (!t) {
        t = new cc.NodePool();
        this.poolMap.set(e, t);
      }
      return t.get() || cc.instantiate($2BundleManager.default.instance.getBundleRes("Prefab", "PoolNode/" + e, cc.Prefab));
    }
  }, {
    key: "putPoolNode",
    value: function putPoolNode(e) {
      var t = this.poolMap.get(e.name);
      if (!t) {
        t = new cc.NodePool();
        this.poolMap.set(e.name, t);
      }
      t.put(e);
    }
  }], [{
    key: "instance",
    get() {
      this._instance || (this._instance = new _ctor());
      return this._instance;
    }
  }]);
  return _ctor;
}();
exports.default = def_PoolManager;
def_PoolManager._instance = null;